VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   Caption         =   "Form1"
   ClientHeight    =   2496
   ClientLeft      =   48
   ClientTop       =   336
   ClientWidth     =   3744
   LinkTopic       =   "Form1"
   ScaleHeight     =   2496
   ScaleWidth      =   3744
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   372
      Left            =   1440
      TabIndex        =   0
      Top             =   1080
      Width           =   972
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 Private Sub Command1_Click()
Dim ref As New InsideCOM
Print ref.SumPersist
Print ref.Sum(3, 4)

Dim pb As New PropertyBag
pb.WriteProperty "Test", "Guy"
pb.WriteProperty "COM+", ref

  Print pb.Contents

Dim newref As InsideCOM
 Set newref = pb.ReadProperty("COM+")

Print newref.SumPersist

End Sub
